import React from 'react';
import ReactDOM from 'react-dom/client';

import './App.css';
import reportWebVitals from './reportWebVitals';

import App from './App';
import { BrowserRouter as Router } from "react-router-dom"
import { Provider } from "react-redux"
import store from "./store"
import { persistor } from './store'
import { PersistGate } from 'redux-persist/lib/integration/react';


const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(


  <Provider store={store}>
    <PersistGate loading={null} persistor={persistor}>
      <Router>
        <App />
      </Router>
    </PersistGate>
  </Provider>
);







